import 'package:safetymonitor/generated/json/base/json_field.dart';
import 'package:safetymonitor/generated/json/get_distribute_return_record_list_entity.g.dart';
import 'dart:convert';
export 'package:safetymonitor/generated/json/get_distribute_return_record_list_entity.g.dart';

@JsonSerializable()
class GetDistributeReturnRecordListEntity {
	late List<GetDistributeReturnRecordListDistributeList> distributeList = [];
	late List<GetDistributeReturnRecordListReturnList> returnList = [];
	late int dispatchPersonId = 0;
	late int disposeTime = 0;
	///派发人员姓名
	late String dispatchPersonName = '';
	/// 派发人员部门name
	late String dispatchPersonDeptName = '';
	/// 督办人员名字
	late String undertakePersonName = '';
	/// 督办时间
	late String undertakeTime = '';

	GetDistributeReturnRecordListEntity();

	factory GetDistributeReturnRecordListEntity.fromJson(Map<String, dynamic> json) => $GetDistributeReturnRecordListEntityFromJson(json);

	Map<String, dynamic> toJson() => $GetDistributeReturnRecordListEntityToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class GetDistributeReturnRecordListDistributeList {
	late List<GetDistributeReturnRecordListDistributeListDistributeList> distributeList = [];
	late GetDistributeReturnRecordListDistributeListAlarmDisposalRecordDO alarmDisposalRecordDO;

	GetDistributeReturnRecordListDistributeList();

	factory GetDistributeReturnRecordListDistributeList.fromJson(Map<String, dynamic> json) => $GetDistributeReturnRecordListDistributeListFromJson(json);

	Map<String, dynamic> toJson() => $GetDistributeReturnRecordListDistributeListToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class GetDistributeReturnRecordListDistributeListDistributeList {
	late int createTime = 0;
	late int updateTime = 0;
	late String creator = '';
	late String updater = '';
	late bool deleted = false;
	late int id = 0;
	late int companyId = 0;
	late int alarmId = 0;
	late String alarmDesc = '';
	late int actionTime = 0;
	late int actionType = 0;
	late int actionUserId = 0;
	late int disposalId = 0;

	GetDistributeReturnRecordListDistributeListDistributeList();

	factory GetDistributeReturnRecordListDistributeListDistributeList.fromJson(Map<String, dynamic> json) => $GetDistributeReturnRecordListDistributeListDistributeListFromJson(json);

	Map<String, dynamic> toJson() => $GetDistributeReturnRecordListDistributeListDistributeListToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class GetDistributeReturnRecordListDistributeListAlarmDisposalRecordDO {
	late int createTime = 0;
	late int updateTime = 0;
	late String creator = '';
	late String updater = '';
	late bool deleted = false;
	late int id = 0;
	late int alarmActionId = 0;
	late String reasonType = '';
	late String reasonAnalysis = '';
	late String sceneDisposalPersonName = '';
	late String undertakePersonName = '';
	late String ascriptionDeptName = '';
	late int sceneDisposalPersonId = 0;
	late int ascriptionDeptId = 0;
	late int sceneDisposalTime = 0;
	late int disposeTime = 0;
	late int undertakePersonId = 0;
	late String disposalMeasures = '';
	late String disposalMeasuresAnnex = '';

	GetDistributeReturnRecordListDistributeListAlarmDisposalRecordDO();

	factory GetDistributeReturnRecordListDistributeListAlarmDisposalRecordDO.fromJson(Map<String, dynamic> json) => $GetDistributeReturnRecordListDistributeListAlarmDisposalRecordDOFromJson(json);

	Map<String, dynamic> toJson() => $GetDistributeReturnRecordListDistributeListAlarmDisposalRecordDOToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class GetDistributeReturnRecordListReturnList {
	late int createTime = 0;
	late int updateTime = 0;
	late String creator = '';
	late String updater = '';
	late String actionUserName = '';
	late bool deleted = false;
	late int id = 0;
	late int companyId = 0;
	late int alarmId = 0;
	dynamic alarmDesc;
	late int actionTime = 0;
	late int actionType = 0;
	late int actionUserId = 0;
	dynamic disposalId;

	GetDistributeReturnRecordListReturnList();

	factory GetDistributeReturnRecordListReturnList.fromJson(Map<String, dynamic> json) => $GetDistributeReturnRecordListReturnListFromJson(json);

	Map<String, dynamic> toJson() => $GetDistributeReturnRecordListReturnListToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}